/* eslint-disable */
import SeaDataTable from './data-table/installer'
import SeaEditableTree from './editable-tree'
import SeaFormItem from './form-item/installer'
import SeaPagination from './pagination/installer'
import SeaRequest from './request'
import SeaEvent from './event/installer.js'

import SmartForm from './smart-form'

import SeaLayer from './layer/installer.js'

import table_header from './table-header/installer.js'
import text_ from './text/installer.js'
import ui_ from './ui/installer.js'

const components = [
    SeaDataTable
    , SeaEditableTree
    , SeaPagination
    , SeaRequest
    , SeaEvent

    , SeaFormItem

    , SmartForm
    , SeaLayer

    , table_header
    , text_
    , ui_
];

/* istanbul ignore next */
const install = function (Vue, opts = {}) {
    components.forEach(component => {
        component.install(Vue)
    });

    /* istanbul ignore if */
    // if (typeof window !== 'undefined' && window.Vue) {
    //     install(window.Vue);
    // }
};

export default {install};

